Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Update IntervalArray min/max test to fail on changed default skipna #59747

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

jsngn
Copy link
Contributor

@jsngn jsngn commented Sep 7, 2024

Before, if the line core/arrays/interval.py:866 is changed from def min(self, *, axis: AxisInt | None = None, skipna: bool = True) -> IntervalOrNA: to def min(self, *, axis: AxisInt | None = None, skipna: bool = False) -> IntervalOrNA:, all tests still passed. Now they will fail if the default skipna param is updated, perhaps mistakenly.

Applies to max() method too since they are tested in the same test function.

@jsngn jsngn changed the title TestTST: Update IntervalArray min/max test to fail on changed default skipna TST: Update IntervalArray min/max test to fail on changed default skipna Sep 7, 2024
@jsngn
Copy link
Contributor Author

jsngn commented Sep 8, 2024

@mroeschke Could you take a look? Thank you!

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Sep 9, 2024
@mroeschke mroeschke added this to the 3.0 milestone Sep 9, 2024
@mroeschke mroeschke merged commit f3d19fb into pandas-dev:main Sep 9, 2024
51 checks passed
@mroeschke
Copy link
Member

Thanks @jsngn

ammar-qazi pushed a commit to ammar-qazi/pandas that referenced this pull request Sep 9, 2024
@jsngn jsngn deleted the mutation branch December 3, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants